export default (isPwdValid, isPwdConfirm) => {
	return {
		column: [
			{
				label: '旧密码	',
				prop: 'oldPwd',
				link: false,
				readonly: true,
				placeholder: '请输入旧密码',
				rules: [
					{
						required: true,
						message: '请输入旧密码',
					},
				],
			},
			{
				label: '新密码',
				prop: 'newPwd',
				disabled: false,
				placeholder: '请输入新密码',
				rules: [
					{
						required: true,
						message: '请输入新密码',
					},
					{
						validator: isPwdValid,
						message: '由大写字母开头，大小写字母、数字、特殊字符中的至少3种组成8～30位字符串',
					},
				],
			},
			{
				label: '确认密码',
				prop: 'confirmPwd',
				placeholder: '请输入确认密码',
				disabled: false,
				rules: [
					{
						required: true,
						message: '请输入确认密码',
					},
					{
						validator: isPwdConfirm,
						message: '两次输入的密码不一致',
					},
				],
			},
		],
	}
}
